package nancal.mp.db.es.table

import java.io.*
import nbcp.myoql.db.*
import nbcp.myoql.db.es.*
import nbcp.myoql.db.comm.*
import nbcp.myoql.db.enums.*
import nbcp.myoql.db.es.component.*
import nbcp.base.utils.*
import nbcp.base.extend.*
import nbcp.myoql.db.es.base.*
import org.slf4j.LoggerFactory
import org.springframework.stereotype.*


class ShopActivityRuleDataMeta (private val parentPropertyName: String): EsColumnName() {
    constructor(_val: EsColumnName): this(_val.toString()) {}

    val memberLevel=esColumnJoin(this.parentPropertyName, "memberLevel")
    val clients=esColumnJoin(this.parentPropertyName, "clients")
    val categoryPath=IdCodeNameMeta(esColumnJoin(this.parentPropertyName,"categoryPath"))
    val products=IdNameMeta(esColumnJoin(this.parentPropertyName,"products"))
    val cities=CodeNameMeta(esColumnJoin(this.parentPropertyName,"cities"))
    val payTypes=esColumnJoin(this.parentPropertyName, "payTypes")
    val favorite=esColumnJoin(this.parentPropertyName, "favorite")
    val startAt=esColumnJoin(this.parentPropertyName, "startAt")
    val endAt=esColumnJoin(this.parentPropertyName, "endAt")
    val platformNoCommission=esColumnJoin(this.parentPropertyName, "platformNoCommission")
    val proxyNoCommission=esColumnJoin(this.parentPropertyName, "proxyNoCommission")
    val sallerNoCommission=esColumnJoin(this.parentPropertyName, "sallerNoCommission")

    override fun toString(): String {
        return esColumnJoin(this.parentPropertyName).toString()
    }
}

